// arg0 - weapon
// arg1 - Guy
var _weapon=argument0, _guy=argument1, _i, _invweap;
if (_weapon.parent == id)
{
    for(_i=0;_i<ds_list_size(_guy.weapons);_i+=1)
    {
        _invweap = ds_list_find_value(_guy.weapons, _i);
        _invweap.visible = false;
    }
    _guy.currentWeapon = _weapon;
    _guy.currentWeapon.visible = true;
}
